#ifndef _VECTORNODE_H_
#define _VECTORNODE_H_

#include <vector>
#include <iostream>

using namespace std;

#include "ExprNode.h"

class VectorNode : public ExprNode {
protected:
    vector<ExprNode*> elements;
public:
    VectorNode(Token *t, vector<ExprNode*> elements): ExprNode(t), elements(elements) { }
    void print() {
        cout << "[";
        if (elements.size() != 0) {
            for (int i = 0; i < elements.size(); i++) {
                ExprNode *child = elements[i];
                if (i > 0)
                    cout << ", ";
                child->print();
            }
        }
        cout << "]";
    }
};

#endif
